package com.zxtc.wh.utils;

import java.util.LinkedList;
import java.util.List;

/**
 * 接受异常，转换为运行时异常并抛出
 * 2017年4月28日09:34:17
 */
public class ThrowExceptionUtils {

    /**
     * 抛出一个异常
     *
     * @param throwable 要抛出的异常
     */
    public static void throwExcption(Throwable throwable) {
        throw new AppRuntimeException(throwable);
    }


    public static class AppRuntimeException extends RuntimeException {

        private AppRuntimeException(Throwable e) {
            super(e);
        }

        public AppRuntimeException(String message, Throwable cause) {
            super(message, cause);
        }
    }
}
